/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.wx.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * wx_activity_configEntity
 * @author wangjianxin
 * @version 2018-09-28
 */
@Table(name="wx_activity_config", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="dis_value", attrName="disValue", label="dis_value"),
		@Column(name="theme", attrName="theme", label="主题"),
		@Column(name="activity_pic", attrName="activityPic", label="海报"),
		@Column(name="share_title", attrName="shareTitle", label="分销标题", queryType=QueryType.LIKE),
		@Column(name="share_content", attrName="shareContent", label="分销描述"),
		@Column(name="share_pic", attrName="sharePic", label="分享图片"),
		@Column(name="business", attrName="business", label="选择的商家"),
		@Column(name="business_main", attrName="businessMain", label="主推商家"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class WxActivityConfig extends DataEntity<WxActivityConfig> {
	
	private static final long serialVersionUID = 1L;
	private String disValue;		// dis_value
	private String theme;		// 主题
	private String activityPic;		// 海报
	private String shareTitle;		// 分销标题
	private String shareContent;		// 分销描述
	private String sharePic;		// 分享图片
	private String business;		// 选择的商家
	private String businessMain;		// 主推商家
	
	public WxActivityConfig() {
		this(null);
	}

	public WxActivityConfig(String id){
		super(id);
	}
	
	@Length(min=0, max=200, message="dis_value长度不能超过 200 个字符")
	public String getDisValue() {
		return disValue;
	}

	public void setDisValue(String disValue) {
		this.disValue = disValue;
	}
	
	@Length(min=0, max=200, message="主题长度不能超过 200 个字符")
	public String getTheme() {
		return theme;
	}

	public void setTheme(String theme) {
		this.theme = theme;
	}
	
	@Length(min=0, max=500, message="海报长度不能超过 500 个字符")
	public String getActivityPic() {
		return activityPic;
	}

	public void setActivityPic(String activityPic) {
		this.activityPic = activityPic;
	}
	
	@Length(min=0, max=200, message="分销标题长度不能超过 200 个字符")
	public String getShareTitle() {
		return shareTitle;
	}

	public void setShareTitle(String shareTitle) {
		this.shareTitle = shareTitle;
	}
	
	@Length(min=0, max=200, message="分销描述长度不能超过 200 个字符")
	public String getShareContent() {
		return shareContent;
	}

	public void setShareContent(String shareContent) {
		this.shareContent = shareContent;
	}
	
	@Length(min=0, max=200, message="分享图片长度不能超过 200 个字符")
	public String getSharePic() {
		return sharePic;
	}

	public void setSharePic(String sharePic) {
		this.sharePic = sharePic;
	}
	
	@Length(min=0, max=200, message="选择的商家长度不能超过 200 个字符")
	public String getBusiness() {
		return business;
	}

	public void setBusiness(String business) {
		this.business = business;
	}
	
	@Length(min=0, max=200, message="主推商家长度不能超过 200 个字符")
	public String getBusinessMain() {
		return businessMain;
	}

	public void setBusinessMain(String businessMain) {
		this.businessMain = businessMain;
	}
	
}